package com.dongjiantong.mq;


import com.dongjiantong.mq.msg.aliyun.AliYunSmsService;
import com.dongjiantong.mq.msg.aliyun.AliYunSmsToken;
import com.dongjiantong.mq.msg.api.SmsService;
import com.google.common.collect.Maps;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

import java.util.Map;

/**
 * @author cao
 * @create 2017-12-20 下午1:13
 **/

@SpringBootApplication
@EnableConfigurationProperties({AliYunSmsToken.class})
public class TestMain {





    public static void main(String[] args) {


//        AliYunSmsToken aliYunSmsToken = new AliYunSmsToken();
//
//        System.out.println("AppKey="+aliYunSmsToken.getAppKey());

        SmsService smsService = new AliYunSmsService();

        Map<String ,String> map = Maps.newHashMap();
        map.put("name","李华");
        map.put("number","c3u62324");
        map.put("certificate_station","上海宝山检疫点");

        smsService.sendSms("SMS_99095015","13524208166",map);
    }
}
